// MyFamily - XML based genealogy program.
// Copyright (C) 2006  Doug Swisher
// See the file COPYING.txt for license details.

using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Web.UI;

using DataModel;


namespace WebLib
{
    class HomePage : WebPage
    {

        public static void Generate(FamilyInfo info, FileNameBuilder namer)
        {
            FileInfo page = namer.GetPageName(FileNameBuilder.Page.HomePage);

            using (HtmlTextWriter writer = new HtmlTextWriter(page.CreateText()))
            {
                WriteHeader(writer, "Home Page");
                WriteTitle( writer, "Home" );
                WriteMenu(writer, namer, info);

                writer.RenderEndTag();
                writer.RenderEndTag();
                writer.Close();
            }

        }

    }
}
